package models

const (
	ZH_CN = "zh-CN"
	EN_US = "en-US"
)

/*error code*/
const (
	SUCCESS = iota
	InternalError
	ParseError
	ValidateError
	UnknownError
)

var ErrMap map[string]map[int]string = map[string]map[int]string{
	ZH_CN: map[int]string{
		InternalError:        "服务器内部错误",
		ParseError:           "参数解析失败",
		ValidateError:        "验证失败,请重新登录",
		UnknownError:         "未知错误",
	},
	EN_US: map[int]string{
		InternalError:        "internal error",
		ParseError:           "parse Error",
		ValidateError:        "validate error",
		UnknownError:         "unknown error",
	},
}
